package com.hydl.power.mapper;

import com.hydl.power.pojo.TemperatureDevice;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TemperatureDeviceMapper {


    int addTemperatureDevice(TemperatureDevice record);

    TemperatureDevice getTemperatureDeviceByTemperatureSerialNumber(String serialNumber);

    TemperatureDevice getTemperatureDeviceByTemperatureDeviceName(String deviceName);

    List<TemperatureDevice> selectTemperature(@Param("pageNumKey")Integer pageNum, @Param("pageSizeKey") Integer pageSize,@Param("areaId")  String areaId,@Param("projectId")  String projectId,@Param("powerRoomId")String powerRoomId);


    List<TemperatureDevice> getTemperatureDeviceByRoomId(String roomId);

    String getTemperatureDeviceNumberByRoomId(String roomId);

    List<TemperatureDevice> getTemperatureDeviceListByProjectId(String projectId);

    List<TemperatureDevice> getTemperatureDeviceList();

    List<TemperatureDevice> getTemperatureDeviceByGatewaySn(String gatewaySn);

    void updateDeviceAlarmByDeviceId(String deviceId, Integer alarm , Integer communicationStatus);

    List<TemperatureDevice> getTemperatureDeviceByGatewaySnAlarmStatus(String gatewaySn);

    List<TemperatureDevice> getTemperatureDeviceByProjectId(String projectId);

    List<String> getDeviceId(@Param("areaId") String areaId, @Param("projectId") String projectId, @Param("powerRoomId") String powerRoomId);

    String getTemperatureDeviceCount(String projectId);

    List<TemperatureDevice> getTemperatureDeviceAll();

    List<TemperatureDevice>getTemperatureDeviceLike();

    TemperatureDevice getTemperatureByTemperatureDeviceId(String deviceId);

    int deleteByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TemperatureDevice record);

    List<TemperatureDevice> queryDevice(String projectId,String powerRoomId);
}
